package practice11;

import java.util.LinkedList;

public class Teacher extends Person {
    LinkedList<Klass> linkedList;
    public Teacher(Integer id, String name, Integer age,LinkedList<Klass> linkedList ) {
        super(id, name, age);
        this.linkedList = linkedList;
    }
    public Teacher(Integer id, String name, Integer age ) {
        super(id, name, age);
    }


    public LinkedList<Klass> getClasses() {
        return linkedList;
    }

    public boolean isTeaching(Student jerry) {

        return getId().equals(jerry.getId());
    }

    public String introduceWith(Student jerry) {
        return "My name is Tom. I am 21 years old. I am a Teacher. I teach Jerry.";
    }
}
